import request from '@/utils/request'

export function systemAllDict(query) {
  return request({
    url: '/system/allDict',
    method: 'get',
    params: query
  })
}
export function systemDict(query) {
  return request({
    url: '/system/dict',
    method: 'get',
    params: query
  })
}

export function systemDictDetail(query) {
  return request({
    url: '/system/dictDetail',
    method: 'get',
    params: query
  })
}

export function systemDictAdd(data) {
  return request({
    url: '/system/dictAdd',
    method: 'post',
    data
  })
}

export function systemDictDetailEdit(data) {
  return request({
    url: '/system/dictDetailEdit',
    method: 'post',
    data
  })
}
